const { defineConfig } = require('@vue/cli-service')
let path = require('path');
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = defineConfig({
  transpileDependencies: true,
  // 配置@快捷路径
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@', resolve('src'))
      .set("assets", resolve("src/assets"))
      .set("components", resolve("src/components"))
      .set("utils", resolve("utils"))
  },
  // 配置多页面匹配
  pages: {
    index: {
      template: "public/index.html",
      entry: "src/main.js",
      filename: "index.html",
      title: "index",
      keywords: "333",
      description: "444",
    }
  },
})
